//
//  SearchViewController.h
//  Zyachting
//
//  Created by hungnt47 on 11/10/2012.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ASIHTTPRequest.h"
#import "MBProgressHUD.h"
@interface SearchViewController : UIViewController <UITableViewDelegate,UITableViewDataSource,ASIHTTPRequestDelegate,UIPickerViewDataSource,UIPickerViewDelegate,UITextFieldDelegate>
{
    UITextField* tfMinimum;
    UITextField* tfMaximum;    
    UITextField* tfReferrence;
    MBProgressHUD* HUD;
}
@property (nonatomic, strong) IBOutlet UITableView* table;
@property (nonatomic, strong) NSMutableDictionary* contents;
@property (nonatomic, strong) IBOutlet UIView* view1;
@property (nonatomic, strong) IBOutlet UIPickerView* picker;
@property (nonatomic, strong) IBOutlet UILabel* pickerTitle;
@property (nonatomic, assign) NSInteger mode;
@property (nonatomic, strong) NSMutableDictionary* selectedDict;
-(void)generateContents;

-(void)showPickerWithMode:(NSInteger)mode;

-(void)hidePicker;

-(IBAction)cancelBtnTapped:(id)sender;

-(IBAction)doneBtnTapped:(id)sender;

-(IBAction)textFieldEdittingDone:(id)sender;

-(IBAction)searchBtnTapped:(id)sender;

-(IBAction)nearbySearchTapped:(id)sender;

-(IBAction)resetFilterBtnTapped:(id)sender;
@end
